'use strict';

const Controller = require('egg').Controller;

class WebController extends Controller {
  async index() {
    const { ctx } = this;

    ctx.body = {
      code: 1,
      data: {
        imgUrls: [
          { src: "http://dev-eqgimg.liqiang365.com/goods/201911/5a59ac631902473fb8691329be19ec56.png", link: "" },
          { src: "https://m.360buyimg.com/mobilecms/s700x280_jfs/t1/96737/13/15187/150889/5e6ef866E69d7741e/f681cb5e52f08191.jpg!cr_1125x445_0_171!q70.jpg", link: "" },
          { src: "https://m.360buyimg.com/mobilecms/s700x280_jfs/t1/31162/17/1128/101786/5c46ead8E22ee9740/f66061da227c1965.jpg!cr_1125x445_0_171!q70.jpg", link: "" },
        ],
        goods: [
          {
            goodsName: "你当家骨瓷 香榭丽舍汤锅品锅汤盆汤碗大陶瓷锅带盖骨瓷餐具方形",
            sellerName: "北京博睿思远网络科技有限公司",
            goodsPhotos: ["http://dev-mallimg.liqiang365.com/goods/202003/827ca504205545238154a3b383f565ae.jpg"],
            goodsContent: `<a target="_blank" href="https://market.m.taobao.com/app/tb-source-app/aiguangjiepc/item/index.html?spm=a21bo.2017.2001.3.5af911d9H0HCQb&amp;itemId=200407364724">https://market.m.taobao.com/app/tb-source-app/aiguangjiepc/item/index.html?spm=a21bo.2017.2001.3.5af911d9H0HCQb&amp;itemId=200407364724</a>`,
            id: "5b00cd43637e4d0d99417cd4a50f5153",
            cover: "http://mallimg.liqiang365.com/goods/202003/083f25f8da2444039483de2122437fcf.jpg",
            marketPrice: "48.00",
          },
          {
            goodsName: "正宗玉露香梨 厂地直供 一箱12个（约5—6斤）",
            sellerName: "泰安国玉农业科技开发有限公司",
            goodsPhotos: [
              "http://mallimg.liqiang365.com/goods/202003/613026ca4a224db08ac7272b80e38c45.jpg",
              "http://mallimg.liqiang365.com/goods/202003/7952f4a0abe9443ba7b7dc4959b343e4.jpg",
              "http://mallimg.liqiang365.com/goods/202003/3d5da1d765ed422bb9926f720f3861ad.jpg",
              "http://mallimg.liqiang365.com/goods/202003/14b8da6e05784e5ba7ebade32d81f198.jpg",
            ],
            marketPrice: "98.00",
            cover: "https://m.360buyimg.com/mobilecms/s750x750_jfs/t1/94008/26/12928/199293/5e5139ceEf5437603/165646203162bc79.jpg!q80.dpg.webp",
            id: "cd6b044717144dc5b60216a462b0a599",
            goodsContent: `<img alt="undefined" src="http://mallimg.liqiang365.com/goods/202003/f4612d57b4fc4db1a6974ecfeceada22.jpg">`
          },

        ]
      }
    }
  }
  async getTitle() {
    const { ctx } = this;
    var { limit = 10, page = 1, pid = 0 } = ctx.request.body;
    ctx.body = {
      code: 1,
      name: 'xiao jie'
    }
  }

}

module.exports = WebController;
